package com.sctvcloud.renhe.ui.dialog;

import android.app.Dialog;
import android.os.Bundle;
import android.os.Message;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;

import com.ruihang.generalibrary.ui.dialog.BaseDialogFragment;
import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.renhe.R;
import com.sctvcloud.renhe.ui.utils.GlideUtil;

/**
 * Created by Administrator on 2017/6/23 0023.
 */

public class QRFragment extends BaseDialogFragment implements View.OnClickListener {
    private ImageView iv_qr;

    @Override
    protected int getContentRes() {
        return R.layout.qr_fragment;
    }

    @Override
    protected void initViews(Dialog dialog, Bundle savedInstanceState) {
        iv_qr = (ImageView) dialog.findViewById(R.id.iv_qr);
        if (getArguments() != null && !TextUtils.isEmpty(getArguments().getString("qrcode"))) {
            GlideUtil.getGlideWith11DefNoFit(getActivity(), getArguments().getString("qrcode")).into(iv_qr);
        }
    }

    @Override
    public void onClick(View v) {

    }

}
